/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class Box implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<Box> CREATOR = new Creator();
    @Nullable
    private String boxId;
    private final boolean combineSuggest;
    private int cuotiNo;
    @NotNull
    private final LeftBottom leftBottom;
    @NotNull
    private final LeftTop leftTop;
    @NotNull
    private final RightBottom rightBottom;
    @NotNull
    private final RightTop rightTop;
    private final int subTaskId;

    /* compiled from: ImageBoxEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<Box> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final Box createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            return new Box(parcel.readInt(), parcel.readInt(), LeftBottom.CREATOR.createFromParcel(parcel), LeftTop.CREATOR.createFromParcel(parcel), RightBottom.CREATOR.createFromParcel(parcel), RightTop.CREATOR.createFromParcel(parcel), parcel.readInt() != 0, parcel.readString());
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final Box[] newArray(int i2) {
            return new Box[i2];
        }
    }

    public Box(int i2, int i3, @NotNull LeftBottom leftBottom, @NotNull LeftTop leftTop, @NotNull RightBottom rightBottom, @NotNull RightTop rightTop, boolean z, @Nullable String str) {
        Intrinsics.checkNotNullParameter(leftBottom, "leftBottom");
        Intrinsics.checkNotNullParameter(leftTop, "leftTop");
        Intrinsics.checkNotNullParameter(rightBottom, "rightBottom");
        Intrinsics.checkNotNullParameter(rightTop, "rightTop");
        this.subTaskId = i2;
        this.cuotiNo = i3;
        this.leftBottom = leftBottom;
        this.leftTop = leftTop;
        this.rightBottom = rightBottom;
        this.rightTop = rightTop;
        this.combineSuggest = z;
        this.boxId = str;
    }

    public final int component1() {
        return this.subTaskId;
    }

    public final int component2() {
        return this.cuotiNo;
    }

    @NotNull
    public final LeftBottom component3() {
        return this.leftBottom;
    }

    @NotNull
    public final LeftTop component4() {
        return this.leftTop;
    }

    @NotNull
    public final RightBottom component5() {
        return this.rightBottom;
    }

    @NotNull
    public final RightTop component6() {
        return this.rightTop;
    }

    public final boolean component7() {
        return this.combineSuggest;
    }

    @Nullable
    public final String component8() {
        return this.boxId;
    }

    @NotNull
    public final Box copy(int i2, int i3, @NotNull LeftBottom leftBottom, @NotNull LeftTop leftTop, @NotNull RightBottom rightBottom, @NotNull RightTop rightTop, boolean z, @Nullable String str) {
        Intrinsics.checkNotNullParameter(leftBottom, "leftBottom");
        Intrinsics.checkNotNullParameter(leftTop, "leftTop");
        Intrinsics.checkNotNullParameter(rightBottom, "rightBottom");
        Intrinsics.checkNotNullParameter(rightTop, "rightTop");
        return new Box(i2, i3, leftBottom, leftTop, rightBottom, rightTop, z, str);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Box)) {
            return false;
        }
        Box box = (Box) obj;
        return this.subTaskId == box.subTaskId && this.cuotiNo == box.cuotiNo && Intrinsics.areEqual(this.leftBottom, box.leftBottom) && Intrinsics.areEqual(this.leftTop, box.leftTop) && Intrinsics.areEqual(this.rightBottom, box.rightBottom) && Intrinsics.areEqual(this.rightTop, box.rightTop) && this.combineSuggest == box.combineSuggest && Intrinsics.areEqual(this.boxId, box.boxId);
    }

    @Nullable
    public final String getBoxId() {
        return this.boxId;
    }

    public final boolean getCombineSuggest() {
        return this.combineSuggest;
    }

    public final int getCuotiNo() {
        return this.cuotiNo;
    }

    @NotNull
    public final LeftBottom getLeftBottom() {
        return this.leftBottom;
    }

    @NotNull
    public final LeftTop getLeftTop() {
        return this.leftTop;
    }

    @NotNull
    public final RightBottom getRightBottom() {
        return this.rightBottom;
    }

    @NotNull
    public final RightTop getRightTop() {
        return this.rightTop;
    }

    public final int getSubTaskId() {
        return this.subTaskId;
    }

    public int hashCode() {
        int hashCode = ((((((((((this.subTaskId * 31) + this.cuotiNo) * 31) + this.leftBottom.hashCode()) * 31) + this.leftTop.hashCode()) * 31) + this.rightBottom.hashCode()) * 31) + this.rightTop.hashCode()) * 31;
        boolean z = this.combineSuggest;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = (hashCode + i2) * 31;
        String str = this.boxId;
        return i5 + (str == null ? 0 : str.hashCode());
    }

    public final void setBoxId(@Nullable String str) {
        this.boxId = str;
    }

    public final void setCuotiNo(int i2) {
        this.cuotiNo = i2;
    }

    @NotNull
    public String toString() {
        return "Box(subTaskId=" + this.subTaskId + ", cuotiNo=" + this.cuotiNo + ", leftBottom=" + this.leftBottom + ", leftTop=" + this.leftTop + ", rightBottom=" + this.rightBottom + ", rightTop=" + this.rightTop + ", combineSuggest=" + this.combineSuggest + ", boxId=" + this.boxId + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        out.writeInt(this.subTaskId);
        out.writeInt(this.cuotiNo);
        this.leftBottom.writeToParcel(out, i2);
        this.leftTop.writeToParcel(out, i2);
        this.rightBottom.writeToParcel(out, i2);
        this.rightTop.writeToParcel(out, i2);
        out.writeInt(this.combineSuggest ? 1 : 0);
        out.writeString(this.boxId);
    }
}